import Layout from '@/layout'

const consumerRouter = {
    path: '/consumer',
    component: Layout,
    redirect: '/consumer/consumerlist',
    name: 'Consumer',
    meta: {
        title: 'consumer',
        icon: 'peoples',
        roles: ['other'] // you can set roles in root nav
    },
    children: [
        {
            path: 'consumerlist',
            component: () => import('@/views/consumer/consumerList'),
            name: 'ConsumerList',
            meta: {
                title: 'consumerlist',
                roles: ['other'] // or you can only set roles in sub nav
            }
        }, {
            path: 'consumeroprate',
            component: () => import('@/views/consumer/consumerOprate'),
            name: 'ConsumerOprate',
            hidden: true,
            meta: {
                title: 'consumeroprate',
                roles: ['other'] // or you can only set roles in sub nav
            }
        }
    ]
}

export default consumerRouter
